error

open fun error(): NetError

Returns a network error of the failed request converted to NetError if such conversion is valid, otherwise an empty Optional.